// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

pub mod schema;
pub mod models;
pub mod db;
pub mod controller;

use controller::gitlab_user;
// #[tauri::command]
// fn add(host: String, token: String, https: i32) {
//   GitlabInfo::new(host, token, https);
// }

#[tokio::main]
async fn main() {
  tauri::Builder::default()
    .invoke_handler(tauri::generate_handler![gitlab_user::add_gitlab_info])
    .run(tauri::generate_context!())
    .expect("error while running tauri application");
}

